<template>
    <div class="app-table">
        <div class="container">
            <div class="app-search">
                <el-form :inline="true" class="demo-form-inline" v-model="form">
                    <el-form-item label="">
                        <el-input placeholder="班级" v-model="form.className">
                            <template #suffix>
                                <el-icon class="el-input__icon">
                                    <img src="../../assets/refund_search.png" alt="">
                                </el-icon>
                            </template></el-input>
                    </el-form-item>
                    <el-form-item label="">
                        <el-input placeholder="姓名" v-model="form.studentName"><template #suffix>
                                <el-icon class="el-input__icon">
                                    <img src="../../assets/refund_search.png" alt="">
                                </el-icon>
                            </template></el-input>
                    </el-form-item>
                    <el-form-item label="">
                        <el-input placeholder="学号" v-model="form.studentNumber"><template #suffix>
                                <el-icon class="el-input__icon">
                                    <img src="../../assets/refund_search.png" alt="">
                                </el-icon>
                            </template></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button class="serach_btn" type="primary" @click="onSubmit"
                            @keyup.enter="searchEnter">搜索</el-button>
                    </el-form-item>
                </el-form>
            </div>
            <div class="card_box">
                <div class="card" v-for="item in 10">
                    <div class="header flex">
                        <div class="name">张三</div>
                        <div class="school flex">
                            <img src="../../assets/excel.png" alt="">
                            <p>{{ schoolName }}</p>
                        </div>
                    </div>
                    <div class="card_li flex">
                        <div class="pName flex">
                            <div class="circle"></div>
                            <p>学号：</p>
                        </div>
                        <div class="pContent">12312123</div>
                    </div>
                    <div class="card_li flex">
                        <div class="pName flex">
                            <div class="circle"></div>
                            <p>班级：</p>
                        </div>
                        <div class="pContent">2022级22班</div>
                    </div>
                    <div class="card_li flex">
                        <div class="pName flex">
                            <div class="circle"></div>
                            <p>提交时间：</p>
                        </div>
                        <div class="pContent">2024-12-12</div>
                    </div>
                    <div class="img_box">
                        <p class="title">证明照片：</p>
                        <img src="../../assets/ChargeTask_banner.png" alt="">
                    </div>
                    <div class="btn_box flex">
                        <button class="btn1">审核</button>
                        <button class="btn2">删除</button>
                    </div>
                </div>
            </div>

            <el-config-provider :locale="locale">
                <el-pagination :total="total" :page-size="pageSize" :current-page="page"
                    :page-sizes="[5, 10, 20, 30, 40, 50, 100]" layout="total, sizes, prev, pager, next, jumper"
                    @size-change="changePageSize" @current-change="changeCurrentPage">
                </el-pagination>
            </el-config-provider>
        </div>
    </div>
</template>
<script>
import editRefundListView from "@/components/payment/editRefundListView.vue";
import { httpService } from "@/utils/httpService";
import zhCn from "element-plus/lib/locale/lang/zh-cn";
import { ElConfigProvider, ElMessageBox, ElMessage } from "element-plus";
import { API_BASE_NAME, API_BASE_NAME1 } from "../../constants"
export default {
    components: { editRefundListView, ElConfigProvider },
    data() {
        return {
            schoolName: API_BASE_NAME,
            schoolName1: API_BASE_NAME1,
            active: 0,
            page: 1,
            pageSize: 10,
            total: 0,
            form: {
                className: "",
                studentName: "",
                studentNumber: "",
            },
        };
    },
    setup() {
        return {
            locale: zhCn,
        };
    },
    mounted() { },
    methods: {
        onSubmit() {
            console.log(this.form);
            // this.getPaymentRefundList();
        },
        searchEnter: function (e) {
            // 使用 which 和 keyCode 属性来解决兼容问题
            var keyCode = window.event ? e.keyCode : e.which;
            var val = e.target.value;
            if (keyCode == 13 && val) {
                // this.getPaymentRefundList();
            }
        },
        changePageSize(size) {
            // this.getStudentPayList();
        },
        // 改变页码，page：回调参数，表示当前选中的“页码”
        changeCurrentPage(page) {
            this.page = page;
            // this.getStudentPayList();
        },

    },
}
</script>
<style scoped>
/* * {
    margin: 0;
    padding: 0;
} */
p {
    margin: 0;
}

.flex {
    display: flex;
    align-items: center;
}

.app-table {
    background: #eff3f5;
    padding: 5px 10px 0px;
}

.container {
    background: white;
    padding: 20px 20px 10px 20px;
    margin-bottom: 10px;
    min-height: calc(100vh - 145px);
}

.card_box {
    display: flex;
    /* justify-content: space-between; */
    /* justify-content: space-between; */
    flex-wrap: wrap;
}

.card {
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.09), -5px 0px 15px rgba(0, 0, 0, 0.09);
    width: 300px;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 15px;
    margin-bottom: 20px;
    margin-right: 30px;
}

.header {
    justify-content: space-between;
    /* background: linear-gradient(to right, #428BF6, #167CEE); */
    background: linear-gradient(to right, rgba(66, 139, 246, 0.08) 50%, rgba(22, 124, 238, 0));
    padding: 0 15px;
    height: 35px;
    margin-bottom: 15px
}

.header img {
    width: 16px;
    margin-right: 5px;
}

.name {
    font-size: 16px;
    color: #000;
}

.school {
    color: #FF8400;
    font-size: 14px;
}

.card_li {
    justify-content: space-between;
    margin: 0 15px;
    height: 30px;
    line-height: 30px;
}

.circle {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background-color: #A7B6C5;
    margin-right: 5px;
}

.pName {
    color: #8595A5;
    font-size: 14px;
}

.pContent {
    color: #000000;
    font-size: 14px;
}

.img_box {
    margin: 15px 15px 0;
}

.img_box img {
    width: 100%;
}

.title {
    color: #8595A5;
    font-size: 14px;
    margin-bottom: 8px;
}

.btn_box {
    margin: 10px 15px 0;
    justify-content: space-between;
}

.btn_box button {
    width: calc(50% - 10px);
    height: 35px;
    border-radius: 5px;
    color: #007EFF;
    font-size: 14px;
}

.btn1 {
    background-color: #EDF6FF;
    border: none;
}

.btn2 {
    border: 1px solid #D8D8D8;
    box-sizing: border-box;
    background-color: #fff;
}
</style>